package cn.lanqiao.bigDate.entity.data;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @description 订单信息表
 * @author lxxing
 * @date 2022-03-15
 */
@Data
@ApiModel("订单信息表")
@TableName("data_book_order")
@AllArgsConstructor
@NoArgsConstructor
public class DataBookOrder {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 订单编号
     */
    @ApiModelProperty("订单编号")
    private String orderNumber;
    /**
     * 订单创建日期
     */
    @ApiModelProperty("订单创建日期")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime date;

    @ApiModelProperty("月份")
    @TableField(exist = false)//设置字段不参与sql
    private String month;
    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    @ApiModelProperty("时间")
    @TableField(exist = false)//设置字段不参与sql
    private String time;
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    /**
     * ISBN码
     */
    @ApiModelProperty("ISBN码")
    private String isbn;
    /**
     * 数量
     */
    @ApiModelProperty("数量")
    private Integer quantity;


    /**
     * 发货地
     */
    @ApiModelProperty("发货地")
    private String placeShipment;
    /**
     * 收货地
     */
    @ApiModelProperty("收货地")
    private String placeReceipt;

    /**
     * 创建者
     */
    @ApiModelProperty("创建者")
    @TableField("create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;
    /**
     * 更新者
     */
    @ApiModelProperty("更新者")
    private String updateBy;
    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public LocalDateTime getDate() {
        return date;
    }

    public void setDate(LocalDateTime date) {
        this.date = date;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getPlaceShipment() {
        return placeShipment;
    }

    public void setPlaceShipment(String placeShipment) {
        this.placeShipment = placeShipment;
    }

    public String getPlaceReceipt() {
        return placeReceipt;
    }

    public void setPlaceReceipt(String placeReceipt) {
        this.placeReceipt = placeReceipt;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
